package graph;

public class Vertex {
    
    private char label;
    private boolean wasVisited;

    public Vertex(char label) {
        this.label = label;
        this.wasVisited = false;
    }
    
    public void setWasVisited(boolean wasVisited) {
        this.wasVisited = wasVisited;
    }
    
    public boolean getWasVisited() {
        return this.wasVisited;
    }
    
    public char getLabel() {
        return this.label;
    }
    
    public String toString() {
        return "" + this.label;
    }
}
